package com.ym.medical.domain.param;

import com.ym.medical.domain.entity.CouponEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * ComputerName:DESKTOP-ANGHV23
 * Author:wenbo
 * Date: 2019-08-30
 * Time: 10:21:04
 * Comment:查询扩展工具类
 */
@Data
public class CouponParam extends CouponEntity {
    @ApiModelProperty(notes = "类型 01 小程序兑换 02 app 03 小程序我的优惠券")
    private String type;

    @ApiModelProperty(notes = "当前用户id(患者端接口)")
    private  Long currId;

    /*@ApiModelProperty(notes = "下单选择标志")
    private Boolean order = false;*/

    @ApiModelProperty(notes = "医生id")
    private Long doctId;

    @ApiModelProperty(notes = "价格id")
    @NotNull(message = "priceId must be nut null",groups =  Qry.class)
    private Long priceId;

    @ApiModelProperty(notes = "sql 执行条件 区别pc 和应用")
    private Boolean condition;

    public interface Qry{

    }

}
